package com.xuetang9.t9.hotel.mapper.condition.impl;

import com.xuetang9.t9.hotel.mapper.condition.ICondition;
import org.springframework.stereotype.Repository;

/**
 * 客人查询条件
 */
public class GuestCondition extends PageCondition implements ICondition {

    /**
     * 姓名
     */
    private String name;

    /**
     * 证件号码
     */
    private String num;

    /**
     * 联系方式
     */
    private String phone;

    /**
     * 客人状态
     */
    private Integer state;

    public GuestCondition() {
    }

    public GuestCondition(Integer currPage, Integer pageSize) {
        super(currPage, pageSize);
    }

    public GuestCondition(Integer currPage, Integer pageSize, String name, String num, String phone, Integer state) {
        super(currPage, pageSize);
        this.name = name;
        this.num = num;
        this.phone = phone;
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "GuestCondition{" +
                "name='" + name + '\'' +
                ", num='" + num + '\'' +
                ", phone='" + phone + '\'' +
                ", state=" + state +
                '}';
    }
}
